package com.volcreate.exception_collection.no1;

import java.util.Scanner;
import java.util.Arrays;

/**
 * @author zxc
 * @date 2020/9/24
 */

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int n = scanner.nextInt();
            String[][] arr = new String[n][];
            for (int i = 0; i < n; i++) {
                arr[i] = new String[i + 1];
                for (int j = 0; j < i + 1; j++) {
                    arr[i][j] = (i + 1) + "*" + (j + 1) + "=" + (i + 1) * (j + 1);
                    if (j < i) {
                        System.out.printf("%-7s", arr[i][j]);
                    } else if (j == i) {
                        System.out.printf("%s", arr[i][j]);
                    }
                }
                System.out.println();
            }
            System.out.println(Arrays.deepToString(arr));
        }
    }
}